<?php 
    echo validation_errors("<li>", "</li>"); 
    if(isset($error)) {
        echo "<div class='mess_error'>";
        echo    "<ul>";
        echo        "<li>$error</li>";
        echo    "</ul>";
        echo "</div>";
    }
?>
<div id="formerror"></div>
<!-- Add Form -->
<div id="formaction_contact_edit">
    <div class="formPanel">
        <fieldset>
            <legend>Chỉnh sửa liên hệ</legend>
            <form id="input_form_contact_edit" method="post" action="<?php echo base_url(); ?>admin_combo/contact/edit/<?php if(isset($info_edit)) echo $info_edit["con_id"]; ?>" enctype="multipart/form-data">
                <label>Họ Tên</label><input type="text" id="txtFullName" name="txtFullName" size="60" class="required" value="<?php if(isset($info_edit)) echo $info_edit["fullname"]; ?>" /><br />
                <label>Email </label><input type="text" id="txtEmail" name="txtEmail" size="60" class="required email" value="<?php if(isset($info_edit)) echo $info_edit["email"]; ?>" /><br />
                <label>Nội Dung</label><textarea id="txtContent" name="txtContent" cols="50" rows="20" class="required"><?php if(isset($info_edit)) echo $info_edit["content"]; ?></textarea><br />
                <label>Chi Tiết</label><br /><textarea id="txtDetail" name="txtDetail" cols="50" rows="20"><?php if(isset($info_edit)) echo $info_edit["con_detail"]; ?></textarea><br />
                <script language="javascript">
                    CKEDITOR.replace("txtDetail");
                </script>
                <label>&nbsp;</label><input type="submit" id="btnSubmit_contact" class="button" name="ok" value="Cập nhật" />
            </form>
        </fieldset>
    </div>
</div>
<div id="dialog" title="Warning"></div>
